﻿using System;

namespace Yaml.Presentation.Tokens {
    public abstract class Token {
        Mark start;
        Mark end;

        public Token(Mark start, Mark end) {
            this.start = start;
            this.end = end;
        }

        public Mark Start {
            get { return start; }
        }

        public Mark End {
            get { return end; }
        }

        public override String ToString() {
            return "#<" + this.GetType().Name + " start=" + start.ToString() + " end=" + end.ToString() + ">";
        }
    }
}
